package com.sikaryofficial.backend.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @author : qinjinyuan
 * @desc : 附件店铺请求
 * @date : 2023/11/06 9:18
 */
@Getter
@Setter
@ToString
@ApiModel(value = "点位请求入参", description = "点位请求入参")
public class PointReq  {
    /**
     * 纬度
     *
     * * `longitude` decimal(10,7) DEFAULT NULL COMMENT '经度 范围是 -180°~180°',
     *      * `latitude` decimal(10,7) DEFAULT NULL COMMENT '纬度 范围是 -90°~90°',
     */
    @ApiModelProperty(value = "纬度", example = "53.6")
    @Min(value = -180, message = "纬度范围是 -180°~180°")
    @Max(value = 180, message = "纬度范围是 -180°~180°")
    private String latitude;
    /**
     * 经度
     * <p>
     */
    @ApiModelProperty(value = "经度", example = "-2.4")
    @Min(value = -90, message = "经度范围是 -90°~90°")
    @Max(value = 90, message = "经度范围是 -90°~90°")
    private String longitude;
}
